package com.css.zfzx.sjcj.modules.yhdisaster.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ExcelDataVo implements Serializable, IExcelDataModel, IExcelModel {

    /**
     * 省
     */
    @NotNull(message = "缺失")
    @Excel(name = "省", width = 15)
    private String province;

    /**
     * 市
     */
    @NotNull(message = "缺失")
    @Excel(name = "市", width = 15)
    private String city;

    /**
     * 区县
     */
    @NotNull(message = "缺失")
    @Excel(name = "区县", width = 15)
    private String area;

    /**
     * 隐患等级
     */
    @NotNull(message = "缺失")
    @Excel(name = "隐患等级", width = 15)
    private String level;


    /**
     * 所属区县编号
     */
    @NotNull(message = "缺失")
    @Excel(name = "所属区县编号", width = 15)
    private String code;

    private Integer rowNum;
    private String errorMsg;
}
